package com.moco.launcher.play;

interface OnStatusChangeCallback
{
    /**
     * Called when the player stops to play.
     */
    void onStop(String id);

    /**
     * Called when the player begins to play.
     */
     
    void onPlaying();

    /**
     * Called when the player is paused.
     */
     
    void onPause(String id);

    /**
     * Called when there is any player error occurs.
     * @param nErrorCode Error code returns from the player.<br>
     *                   0: an error occurs while playing<br>
     *                   1: the player is gone expectedly<br>
     *                   2: someone terminates the player
     */
    void onError(int nErrorCode);
    
    void onSeekComplete(String id);
    
    void playNext();
    
    void playPre();
}